﻿using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;

namespace Vaccine.API.Repositories
{
    /// <summary>
    /// 疫苗信息
    /// </summary>
    public class VaccineInfo
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Comment("主键")]
        public Guid Id { get; set; }

        /// <summary>
        /// 疫苗名称
        /// </summary>
        [Comment("疫苗名称")]
        [MaxLength(32)]
        public string? Name { get; set; }

        /// <summary>
        /// 疫苗描述
        /// </summary>
        [Comment("疫苗描述")]
        [MaxLength(256)]
        public string? Description { get; set; }

        /// <summary>
        /// 疫苗数量
        /// </summary>
        [Comment("疫苗数量")]
        public int Quantity { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Comment("创建时间")]
        public DateTime CreatedTime { get; set; }

        /// <summary>
        /// 最近修改时间
        /// </summary>
        [Comment("最近修改时间")]
        public DateTime? LastModifiedTime { get; set; }
    }
}
